<template>
  <section :style="{width: width + 'px'}">
    <span >{{testNum(index)}}</span>
  </section>
</template>

<script>
export default {
  name: 'list',
  data() {
    return {
      width: 100
    }
  },
  methods: {
    testNum () {
      const t = Date.now()
      while (Date.now() - t < 500) {}
      this.width += 50;
      return '这是不变的数据'
    }
  }
}
</script>

<style scoped>

</style>
